﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RedFoxScraper
{
  interface IDatabase
  {
    void insertBorad( int id, string name );
    List<Tuple<int, string>> getBoards();
    void insertPostBrief(int id, int boardId, string title, string author, DateTime posted);
    void insertRelatedPost(int id, int parentid, int boardId, string title, string content, string author, DateTime posted);
    void updatePost(int id, string content);
    bool isPostExisted(int id);
    List<int> getPostsByBoard(int boardId);
    string saveImage(int id, string url);
  }
}
